package com.itzhoun.annotation;

import com.itzhoun.validate.IdCardValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author 周楠
 * @Date 2022/06/29/上午 9:09
 */
@Target({ElementType.METHOD,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {IdCardValidator.class,})
@Documented
public @interface IdCard {

    String message() default "身份证号码输入不合法";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};


}
